package demo01;

import java.awt.RenderingHints.Key;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Scanner;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap.KeySetView;
import java.util.function.Predicate;
import java.util.stream.Collectors;
import java.util.stream.IntStream;

import javax.swing.SpringLayout.Constraints;

public class zuoye05 {
	public static void main(String[] args) {
		HashMap<Integer, Integer>map=new HashMap<>();
		int[] arr1={1,2,3};
		int[] arr2={3,4,5,2};
		for(Integer a : arr2)
		{
			map.put(a, 1);
		}
		for(Integer b : arr1)
		{
			map.put(b, 1);
		}
		System.out.println(map);
		Set<Integer> keySet = map.keySet();
		 List<Integer> collect = keySet.stream().filter(t-> IntStream.of(arr1).noneMatch(t1 ->t==t1)).collect(Collectors.toList());
		 List<Integer> collect1 = keySet.stream().filter(t-> IntStream.of(arr2).noneMatch(t2 ->t==t2)).collect(Collectors.toList());
		System.out.println(collect1+""+collect);
	}

	}

